From TMP:
With two decidedly weaker sequels (and one that’s nearly unwatchable) the X-Men franchise needed a big hit in order to pull itself back from the brink, and breath new life into the series. That’s exactly what the filmmakers hoped to do with X-Men: First Class...and it worked.