Somalia's prime minister has lost his job after members of the parliament voted on a no-confidence motion against him, Al Jazeera has learned.

The parliament voted on Saturday to oust Abdiweli Sheikh Ahmed, who had a falling out with the President Hassan Sheikh Mohamud.

Ahmed received support from only 80 lawmakers, while 153 backed a motion to oust him.

Ahmed's government has been struggling to provide security in the country, amid periodic attacks launched by the armed group al-Shabab.

Ahmed has for months been at loggerheads with Mohamud, prompting international backers to warn that  the infighting was putting at risk the fragile gains made in the war-scarred nation.

Mohamud has 30 days to appoint a new prime minister.

Source: Al Jazeera