Sri Lankan cricket captain Angelo Mathews has stepped down amid intense criticism over his side’s series defeat to bottom-ranked Zimbabwe on home soil, an official said Wednesday.

Mathews met with chief selector Sanath Jayasuriya to discuss his future with the team before a one-off Test against Zimbabwe beginning Friday, said an official with Sri Lanka’s cricket board.

“He has quit the captaincy from all three forms of the game,” an official was quoted as saying, referring to Test, One-day International and the Twenty20 International formats. Mathews has captained Sri Lanka in 34 Tests, 98 ODIs and 12 T20Is after being elevated to the post aged just 25 in 2013. Zimbabwe notched their first win abroad in eight years after beating Sri Lanka 3-2 in the series, embarrassing a home side that has struggled with fitness, losses and coaching upheaval.

An official announcement of Mathews’ resignation was expected later Wednesday, the official added. Mathews took the brunt of the criticism levelled at Sri Lanka’s cricketers in the aftermath of their 3-2 series loss at home to minnows Zimbabwe on Monday.

Mathews described the shock defeat as a low point in his career and a “hard pill to swallow”. It compounded woes for the struggling side, which entered the series without a coach after Graham Ford’s sudden exit following their poor showing in the Champions Trophy last month.

Sri Lanka’s sports minister delivered the squad an ultimatum after that performance, ordering players get in shape or face the boot after declaring them unfit to compete on the world stage.