Health Secretary Shona Robison has confirmed that a vaccine for meningitis B will be made available for babies in Scotland.
It follows a deal made by the UK government on behalf of the devolved governments with the drug manufacturer Glaxo Smith Kline, reports BBC.
Negotiations over the cost of the vaccine had gone on for months.
The delay in availability angered campaigners who said children's lives had been put at risk.
The announcement follows lengthy discussions between the UK government with another drugs supplier - Novartis - which used to own the vaccine, called Bexsero.
GSK acquired the vaccine from Novartis, which resulted in the price of the vaccine being reduced and the deal being struck, UK Health Secretary Jeremy Hunt said.
Health advisers recommended a year ago that the vaccination be made available to all babies in the UK.
Meningitis B is a bacterial infection that particularly affects children under the age of one.
It commonly affects children under five years of age, and is also common among teenagers aged 15 to 19.
Health Secretary Shona Robison said: "The Scottish government has been consistent in its support for the introduction of the Meningitis B vaccine, Bexsero.
"We will now work to roll out the vaccination programme as quickly as possible.
"The Meningitis B vaccine will now form part of the routine childhood immunisation programme in Scotland, underlining our commitment to ensuring the health and wellbeing of our children."
The vaccination will be given in three doses at two, four and 12 months, with all babies in Scotland aged two months at the point of introduction being eligible.
There are about 1,870 cases of the infection each year in the UK.
Most children will make a full recovery with early diagnosis and antibiotic treatment, although it is fatal in one in 10 cases.
About one in four of those who survive is left with long-term problems such as amputation, deafness, epilepsy and learning difficulties.
Sue Davie, chief executive of the charity Meningitis Now, said: "To know that babies will be protected against MenB is fantastic and another great step forward in our fight against meningitis."