Gog and Magog

Does the ‘Ezekiel war’ take place
before the great tribulation
after the great tribulation
or after the Millennial Kingdom?

What will happen and when!