Official timeline of events
1943-1945: Captain America: The First Avenger
1995: Captain Marvel
2010: Iron Man
2011: Iron Man 2, The Incredible Hulk, Thor
2012: The Avengers, Iron Man 3
2013: Thor: The Dark World
2014: Captain America: The Winter Soldier, Guardians of the Galaxy, Guardians of the Galaxy Vol. 2
2015: Avengers: Age of Ultron, Ant-Man
2016: Captain America: Civil War, Spider-Man: Homecoming, Black Panther
2016 through to 2017: Doctor Strange
2017: Thor: Ragnarok
2018: Avengers: Infinity War, Ant-Man & the Wasp
2019: Avengers: Endgame, Spider-Man: Far From Home
That isn't the order they came out btw, just MCU official timelime of events