Title: World Series
Content:  in 1980 to the Philadelphia Phillies, lost in 1986 to the New York Mets, lost in 2004 to the Cardinals, and won in 2005 versus the Cardinals) and 2–2 in four ALCS appearances (winning in 2017 and 2019 against the New York Yankees and losing to the Boston Red Sox in 2018 and the Tampa Bay Rays in 2020). The Astros are the only team in MLB to appear in the World Series as a member of both the National League (2005) and the American League (2017 and 2019); they have gone 1-2 overall across three World Series appearances, going 0-1 as a member of 
Title: Houston Astros sign stealing scandal
Content:  at Minute Maid Park while losing all three road games at Yankee Stadium. In the World Series, the Astros defeated the Los Angeles Dodgers in seven games, going 2–2 at Dodger Stadium and 2–1 at Minute Maid Park. It was their first World Series championship in franchise history. The Astros finished in first place in the AL West again in 2018 with a 103–59 record but lost the AL Championship Series to the Red Sox. Houston returned to the World Series in 2019 and in 2021, losing to the Washington Nationals in seven games and the Atlanta Braves in six games, respectively.
Title: Houston Astros
Content:  Wonder of the World." The Astros moved to a new stadium called Minute Maid Park in 2000. The Astros played in the NL West division from 1969 to 1993, then the NL Central division from 1994 to 2012, before being moved to the AL West as part of a minor realignment in 2013. The Astros posted their first winning record in 1972 and made the playoffs for the first time in 1980. The Astros made their first World Series appearance in 2005 but were swept by the AL’s Chicago White Sox. In the following decade, the team embraced sabermetrics and pioneered new analytical technologies during the early 
Title: 2005 Houston Astros season
Content:  The 2005 Houston Astros season was the 44th season for the Major League Baseball (MLB) franchise in Houston, Texas. They qualified for the postseason for the second consecutive season and it was the sixth time they had done so in a span of nine seasons. Expectations had been raised since the Astros had come one win away from a pennant the previous year. However, they got to a sluggish 15–30 start. They then went on to win 74 of the next 117 games to claim the wild card playoff spot, and would go on to win the National League pennant to advance to the World Series for the first time in franchise history, which gave them the privilege of hosting the first World Series game in the state of Texas. However, they were swept by the Chicago White Sox in the World Series. It was longtime Astros first baseman Jeff Bagwell's final season and first World Series appearance. However, it was also the last playoff appearance for ten seasons, as a slow decline swept in following the retirements of players such as Bagwell.
Title: Houston Astros
Content:  Astros faced the Chicago White Sox in the World Series. Chicago had been considered the slight favorite but would win all four games, the first two at U.S. Cellular Field in Chicago and the final two in Houston. Game 3 marked the first World Series game held in the state of Texas, and was the longest game in World Series history, lasting 5 hours and 41 minutes. This World Series was marked by a controversy involving the Minute Maid Park roof. MLB and Commissioner Bud Selig insisted that the Astros must play with the roof open, which mitigated the intensity and enthusiasm of the cheering Astros fans.
Title: 2005 World Series
Content:  faced each other in the 2011 NLCS, the 2005 World Series is one of only two World Series in the modern era (1903–present) with no possibility for a rematch between the two opponents, but possible in the League Championship Series, because the Astros moved to the AL in 2013. The Astros would next return to the World Series in 2017 as an AL franchise, where they would win in seven games against the Los Angeles Dodgers. The Astros would return to the Fall Classic again in 2019 and 2021, but fell short to the Washington Nationals in 7 games and to the Atlanta Braves in 6 games, respectively.
Title: Houston Astros
Content:  three consecutive 100-win seasons in the same decade. Entering the playoffs as the top-seeded team in both leagues, they defeated the AL Wild Card winner Tampa Bay Rays in five games in the ALDS, advancing to the ALCS for the third year in a row to face the New York Yankees. In Game 6 at Minute Maid Park, Jose Altuve hit a walk-off home run to win the pennant and send the team to its third World Series appearance. However, they lost the 2019 World Series to the Washington Nationals in seven games, taking three games in Washington but losing all four of their games at home.
Title: 2019 Houston Astros season
Content:  For the first time in franchise history, the Astros finished the season with the best record in baseball and defeated the Tampa Bay Rays in the Division Series by a margin of three games to two. They then defeated the New York Yankees in the American League Championship Series (ALCS) by a margin of four games to two, winning the pennant and a trip to the World Series for the second time in three years. However, they were defeated by the Washington Nationals in seven games in the World Series. Despite the World Series upset, this Astros team is still considered to have put together one of the 
Title: 2019 World Series
Content:  of the series being won by the home team. The Astros' opponent in the best-of-seven American League Championship Series (ALCS) was the New York Yankees, who had defeated the Minnesota Twins in their playoff series, three games to none. In the ALCS, the Astros and Yankee split the first two games, followed by the Astros winning two-of-three games played at Yankee Stadium. Game 6 in Houston was then won by the Astros, giving them the series win, four games to two. The Astros' ALCS victory advanced them to their third overall World Series appearance (2 in the American League & one in the National League), and second in three years.
Title: Houston Astros
Content:  transforming from a middling franchise into one of MLB's most dominant and successful clubs, winning over 100 games in three straight seasons, although they were central players in a major cheating scandal. The Astros won the 2017 World Series, their first championship, against the Los Angeles Dodgers in seven games in the wake of Hurricane Harvey. Having been defeated by Boston the following year in the 2018 ALCS, the Astros returned to the World Series in 2019, losing to the Washington Nationals in seven games despite putting together an all-time great, and franchise-best, regular season. On January 13, 2020, Astros manager A. J. Hinch and general manager 

Question: when was the last time astros was in the world series?
Answer: 2017.
2005.