Peruvian President Ollanta Humala unexpectedly asked Prime Minister Salomon Lerner to quit to allow for a broader cabinet shuffle and create more unity in a diverse cabinet, a government source said on Saturday.

Under Peruvian law, if a prime minister steps down the rest of the ministers must hand in their resignations too, giving the president a free hand to fire them or confirm them in their posts.

(Reporting by Marco Aquino; editing by Anthony Boadle)