As the third week of the war in the Middle East continues, intelligence gathered by the Pentagon is being analyzed by technology from the artificial intelligence company Anthropic, on a system run by the data analytics firm Palantir.Drones created by a defense tech startup in Arizona have emerged as a key piece of the U.S. war arsenal.And anti-drone systems made by a California startup have been deployed to protect U.S. forces in the region.Silicon Valley made risky bets in recent years on developing defense-related technology and providing services to the U.S. military establishment. Now those bets are paying off. From behemoths providing data systems to smaller companies offering novel weapons, tech firms such as Google, Palantir and OpenAI have found themselves at the heart of the U.S. war effort.Their central role amounts to an “I told you so” moment. For years, the tech industry’s efforts on defense-related offerings faced skepticism and opposition, with no clear or immediate business rewards. Many Silicon Valley engineers opposed the use of powerful technologies for killing, battles and other military purposes — concerns that persist.Despite those fears, venture capital firms have poured billions of dollars since the 2010s into startups building drones, lasers and other military systems. In January, Andreessen Horowitz, which was founded by entrepreneurs Marc Andreessen and Ben Horowitz, closed a new, almost $1.2 billion fund to invest in defense technologies.Story continues below this adIn recent years, defense tech startups often plowed ahead with weapons prototypes before they had official government contracts. At the same time, executives including Alex Karp, CEO of Palantir, and others started cultivating more ties with the government.President Joe Biden welcomed military technology, and President Donald Trump has further embraced it. Last year, Trump issued an executive order calling for the military to update its system for acquiring technology so it could incorporate new tools faster. His domestic policy bill last year allocated $1 trillion to defense in 2026, including for technology offered by defense tech firms.Now the war has cemented that work, most likely leading to more business between the tech industry and the military.This month, OpenAI CEO Sam Altman agreed to bring his company’s AI systems onto the Pentagon’s classified networks. Google signed a deal to bring AI bots known as “agents” into the Defense Department. On Friday, the Army said it had awarded Anduril, a defense tech company, a $20 billion deal for AI-backed software to run on military systems.Story continues below this ad“People are pointing to this moment as a proof point,” said Garrett Smith, a former lieutenant colonel and the CEO of Reveal Technologies, which makes mapping technology for the Army.“It has shown us that in creating and selling these technologies to the U.S. military, we are on the right track,” he added. “We have made the right investments.”Pentagon officials said they were excited about how well new technology like AI-related systems had performed in the U.S.-Israeli war against Iran. Two officers who were not authorized to speak publicly said the war was an inflection point in showing how modern technology could work with existing military systems.But Amos Toh, a senior counselor at the Brennan Center for Justice, a New York nonprofit focused on law and public policy, cautioned that this gung-ho attitude might lead to little oversight of new systems and an overreliance on just a few tech companies. The military and the government need “to take a look at the dependencies it is creating,” Toh said.Story continues below this adOpenAI, Google and the Pentagon did not respond to requests for comment.Project Maven, an AI-backed system built by Palantir for the Pentagon, is one prominent example of modern technology in the war. Maven works by layering Palantir’s data systems with AI technology from Anthropic. Anthropic’s systems analyze real-time data about battles and other war scenarios, while Palantir’s technology draws conclusions about which targets to strike.Airstrikes hit over 2,000 targets in Iran in the first four days of the war. Many of the targets were selected from a list produced by Maven after it analyzed information from drones, satellite imagery and other sources.On Thursday, Palantir’s Karp said in a CNBC interview that AI was giving U.S. forces an edge. Palantir’s stock has soared more than 12% since the war began.Story continues below this ad“Our adversaries and enemies are witnessing our ability to fight that they don’t have, and they will find it very hard to acquire,” he said. “America is the center of the AI revolution.” Palantir and Anthropic declined to comment.Technologies from defense startups are also being deployed. A system that uses drones to counter other drones, called Merops, developed as a venture project by former Google CEO Eric Schmidt, has become instrumental to protecting U.S. assets in the conflict. The system, which is small enough to be launched from the back of a pickup truck, uses AI to seek out and intercept drones before they can reach their targets.Schmidt’s office declined to comment.Small and lightweight drones called LUCAS from SpektreWorks, a startup in Phoenix, have also been deployed in the battlefield. The LUCAS drones, which mimic Iran’s Shahed drones, are designed for one-way flights. They have been effective in overwhelming missile defense shields and engaging in the type of drone warfare first made popular in Ukraine, a U.S. official said.SpektreWorks declined to comment on its work with the Pentagon.Story continues below this adThis month, U.S. Central Command posted footage of rows of the drones as they were readied to be sent to U.S. forces. “I’d like to point out these drones were originally an Iranian design,” said Adm. Brad Cooper, the head of the Central Command. “We took them right back to America, made them better and fired them right back.”This article originally appeared in The New York Times.