The Gambia and Tanzania have banned child marriage, with tough penalties for those who breach the rulings.
Gambia's President Yayha Jammeh announced that anyone marrying a girl below 18 would be jailed for up to 20 years.
In Tanzania, the high court imposed a landmark ruling outlawing marriage under the age of 18 for boys and girls.
Some 30% of underage girls are married in The Gambia, while in Tanzania the rate is 37%.
The BBC's Tulanana Bohela in Dar es Salaam says this is a big win for child rights groups and activists, who will now have an easier time rescuing girls from child marriage.
In December last year, Mr Jammeh also outlawed female genital mutilation (FGM), with a prison sentence of up to three years for those that ignored the ban.