St Cenydd School, in Trecenydd, has been awarded a £400,000 grant from the Welsh Assembly Government.
The money will go towards providing safer routes to the school for pupils and comes from the Safer Routes in Communities scheme.
Caerphilly AM Jeff Cuthbert welcomed news of the grant and said: “This initiative has made a real difference in improving accessibility throughout communities across Wales.
“This grant is another example of how the Welsh Assembly Government is working with local government and schools to improve safer routes in the communities.
“This partnership approach is the way forward, for our efforts to create a brighter future for Caerphilly and the Aber Valley.”
Ian Kilcoyne, head teacher at St Cenydd, said: “Our school is delighted to be involved in the Safer Routes in Communities initiative.
“Many pupils have long wanted to walk or cycle to school, but have not been able to do so due to the dangerous road conditions.
“When the scheme is completed, not only will it ease the traffic congestion in St Cenydd Road at the start and end of the day, it will also enable many more pupils to walk to school, and many to cycle which they have not been able to do up until now.”