US stock markets closed with gains on Wednesday, driven largely by the successful public debut of SpaceX. Shares of the space exploration company rose 19 percent in their Nasdaq debut, pushing its valuation above $2 trillion. The positive performance of SpaceX boosted investor confidence and contributed to the overall market rally. Simultaneously, oil prices declined amid growing optimism for a potential de-escalation of tensions in the Middle East. This hope for stability in the region lessened concerns about potential disruptions to oil supply. The Nasdaq composite led the gains, followed by the S&P 500 and the Dow Jones Industrial Average. Analysts suggest both the SpaceX launch and geopolitical developments significantly influenced trading activity.