What was Finland in World War 2 Axis Neutral or Allies?

they were against the USSR.
So, when the USSR was with Germany, then Finland was on its own, then when the USSR was against Germany, Finland allied with Germany.

Then when Finland surrendered to the USSR for a second time, Finland had to declare war on Germany.