Answer
Matthew Guy's resignation in 2018 was primarily driven by his party's defeat in the Victorian state election. The Liberal-National Coalition, led by Guy, lost to the incumbent Labor Party, led by Daniel Andrews. The election defeat marked a significant setback for Guy and his party, contributing to his decision to step down as leader.