A free and confidential online HIV testing service is set to be expanded.
More than £9 million is being invested in the HIV Action Plan over the next two years as part of a plan to eliminate new transmissions in Wales.
It includes almost £4 million a year to expand access to testing services.
The online testing service currently provides 40,000 at-home HIV tests every year and almost 16,000 community testing kits across Wales.
The new funding will support the expansion of this service.
Other measures to be supported include improving access and uptake of pre-exposure prophylaxis (PrEP), which reduces the risk of contracting HIV through sex by 99 per cent when taken as prescribed.
Wales already provides PrEP through the NHS, and now an alternative form of the medicine will be routinely available for those who cannot take the current form.
The funding will also be used to strengthen support services to ensure people with HIV live well and receive the right treatment when they need it.
Health Secretary Jeremy Miles said: “We want people who are living with HIV in Wales to live their best possible lives.
“We will raise awareness of the importance of testing and expanding our successful online testing services, making it easier for people to access a test.
“We will also make it easier for people to access PrEP and reinforce the key message that people who are on effective treatment cannot pass HIV onto others.”