What was wrong with Trudeau?

As a German I didn't quite get what went wrong - why was (or is?) Trudeau so unpopular in Canada? Why was he forced to resign?

From what we heared in the media here in Europe, he didn't do such a bad job after all. At least considering all the economical and geopolitical circumstances the whole world had to face (first covid, then Ukraine and all of that shit).

Additionally as a liberal he represents the opposite of Trumps politics (whereas the conservatives who seem to be favoured by most Canadians now) will probably be much more likely to bow to his demands.

So from all what I know about the situation I can not explain the resignation. Can any Canadian tell me more?