It's built on top of Wine, which reimplements parts of Windows so that they run on other platforms.
It also relies on Apple's own Game Porting Toolkit, which is intended to help game developers port their own games, but can help with running any game.