DARPA, which stands for Defense Advanced Research Projects Agency, is credited with inventing the internet. In the late 1960s, DARPA funded a project called ARPANET, which laid the foundation for the modern internet. The goal was to create a network that could connect computers and facilitate communication and data sharing. Through their research and development efforts, DARPA played a crucial role in creating the technology and protocols that eventually led to the internet as we know it today.