An ab initio-based magnetic-cluster-expansion treatment developed for body- and face-centered cubic phases of iron and iron-chromium alloys is applied to modeling different phase transitions. The Curie, Néel, and the structural phase-transition temperatures predicted by the model are in good agreement with experimental observations.