Scott Morrison says he sought medication while in office to prevent suffering "serious depression".
Scott Morrison was once considered a "miracle-worker", but his popularity plunged amid controversies.
Elected last year, PM Anthony Albanese vowed to haul his laggard nation from the "naughty corner".
Australia's election has ushered in political pioneers and interesting firsts across the parliament.
The results in many seats had been unclear after a record vote for independents and minor parties.
Peter Dutton - an ex-policeman and polarising figure - will succeed Scott Morrison as Liberal leader.
Anthony Albanese vows to take the nation in a new direction, creating a renewable energy superpower.
Politics will now be greener, more feminine, and more emphatically Australian, writes Nick Bryant.
Australia's defeated PM had a carefully cultivated image, but it failed him in the end.