ferdinand maria was crowned on 31 october 1654. he was an absolute monarch. he allied with france. ferdinand maria supported the wars of the habsburgs against the ottoman empire with bavarian forces (1662-1664). during the franco-dutch war since 1672 bavaria became neutral. the marriage of his eldest daughter maria anna and her cousin "louis, grand dauphin" in 1680 cemented the alliance with france. ferdinand maria modernised the army and introduced the first bavarian local government code. he made bavaria a rich nation.