The evolution of spiders has been ongoing for at least 380 million years. The group's origins lie within an arachnid sub-group defined by the presence of book lungs (the tretrapulmonates); the arachnids as a whole evolved from aquatic chelicerate ancestors. More than 45,000 extant species have been described, organised taxonomically in 3,958 genera and 114 families. There may be more than 120,000 species. Fossil diversity rates make up a larger proportion than extant diversity would suggest with 1,593 arachnid species described out of 1,952 recognized chelicerates. Both extant and fossil species are described annually by researchers in the field. Major developments in spider evolution include the development of spinnerets and silk secretion.
Early spider-like arachnids
Trigonotarbids share many superficial characteristics with spiders, including a terrestrial lifestyle, respiration through book lungs, and walking on eight legs, with a pair of leg-like pedipalps near the mouth and mouth parts. They lacked the ability to spin silk: there is no evidence for either spigots or spinnerets within the group. An unpublished fossil exists which has distinct microtubercles on its hind legs, akin to those used by spiders to direct and manipulate their silk, but given the lack of any structures associated silk production, it seems unlikely the structures were associated with silk.
Trigonotarbids are not true spiders, and the trigonotarbids have no living descendants.
Emergence of true spiders
At one stage, Attercopus was claimed as the oldest fossil spider which lived during the Devonian. Attercopus was placed as the sister-taxon to all living spiders, but has now been reinterpreted as a member of a separate, extinct order Uraraneida which could produce silk, but did not have true spinnerets. The discovery of Chimerarachne in early Late Cretaceous (Cenomanian) aged Burmese amber has also demonstrated that taxa existed until the Cretaceous that had both spinnerets, and a whip-like telson.
The oldest reported spiders date to the Carboniferous Period, or about 300 million years ago. Most of these early segmented fossil spiders from the Coal Measures of Europe and North America probably belonged to the Mesothelae, or something very similar, a group of spiders with the spinnerets placed underneath the middle of the abdomen, rather than at the end as in modern spiders. They were probably ground-dwelling predators, living in the giant clubmoss and fern forests of the mid-late Palaeozoic, where they were presumably predators of other primitive arthropods. Silk may have been used simply as a protective covering for the eggs, a lining for a retreat hole, and later perhaps for simple ground sheet web and trapdoor construction. They co-existed with a range of spider-like forms which had some, but not all, the characters associated with the true spiders.
As plant and insect life diversified so also did the spider's use of silk. Spiders with spinnerets at the end of the abdomen (Mygalomorphae and Araneomorphae) appeared more than 250 million years ago, presumably promoting the development of more elaborate sheet and maze webs for prey capture both on ground and foliage, as well as the development of the safety dragline. The oldest mygalomorph, Rosamygale, was described from the Triassic of France. Megarachne servinei from the Permo-Carboniferous was once thought to be a giant mygalomorph spider and, with its body length of 1 foot (34 cm) and leg span of above 20 inches (50 cm), the largest known spider ever to have lived on Earth, but subsequent examination by an expert revealed that it was actually a relatively small sea scorpion.
By the Jurassic period, the sophisticated aerial webs of the orb-weaver spiders had already developed to take advantage of the rapidly diversifying groups of insects. A spider web preserved in amber, thought to be 110 million years old, shows evidence of a perfect "orb" web, the most famous, circular kind one thinks of when imagining spider webs. An examination of the drift of those genes thought to be used to produce the web-spinning behavior suggests that orb spinning was in an advanced state as many as 136 million years ago. One of these, the araneid Mongolarachne jurassica, from about , recorded from Daohuogo, Inner Mongolia in China, is the largest known fossil of a spider.
The 110-million-year-old amber-preserved web is also the oldest to show trapped insects, containing a beetle, a mite, a wasp's leg, and a fly. The ability to weave orb webs is thought to have been "lost", and sometimes even re-evolved or evolved separately, in different species of spiders since its first appearance.
Around half of modern spider species belong to the RTA clade, a group of spiders linked by the shared morphological trait of the retrolateral tibial apophysis (RTA) on the male pedipalp. Despite their modern diversity, there is no unambiguous evidence of the clade from the Mesozoic, though molecular clocks suggest that diversification of the group began in the Late Cretaceous. There appears to be a faunal turnover in the Cretaceous-Cenozoic interval, with the Cretaceous dominated by Synspermiata and Palpimanoidea, as well as enigmatic extinct families like the lagonomegopids, while the Cenozoic is dominated by RTA clade and araneoid spiders.
- Garwood, Russell J.; Dunlop, Jason (2014). "Three-dimensional reconstruction and the phylogeny of extinct chelicerate orders". PeerJ. 2: e641. doi:10.7717/peerj.641. ISSN 2167-8359. PMC 4232842. PMID 25405073.
- Garwood, Russell J.; Dunlop, Jason A.; Knecht, Brian J.; Hegna, Thomas A. (2017). "The phylogeny of fossil whip spiders". BMC Evolutionary Biology. 17 (1): 105. doi:10.1186/s12862-017-0931-1. ISSN 1471-2148. PMC 5399839. PMID 28431496.
- Garrison, Nicole L.; Rodriguez, Juanita; Agnarsson, Ingi; Coddington, Jonathan A.; Griswold, Charles E.; Hamilton, Christopher A.; Hedin, Marshal; Kocot, Kevin M.; Ledford, Joel M.; Bond, Jason E. (2016). "Spider phylogenomics: untangling the Spider Tree of Life". PeerJ. 4: e1719. doi:10.7717/peerj.1719. ISSN 2167-8359. PMC 4768681. PMID 26925338.
- Jason A. Dunlop; et al. (2008), "How many species of fossil arachnids are there?", The Journal of Arachnology, 36 (2): 267–272, doi:10.1636/ch07-89.1, S2CID 42371883
- Garwood, Russell J.; Edgecombe, Gregory D. (September 2011). "Early Terrestrial Animals, Evolution, and Uncertainty". Evolution: Education and Outreach. 4 (3): 489–501. doi:10.1007/s12052-011-0357-y. ISSN 1936-6426.
- Garwood, Russell; Dunlop, Jason (2015). "The walking dead: Blender as a tool for paleontologists with a case study on extinct arachnids". Journal of Paleontology. 88 (4): 735–746. doi:10.1666/13-088. ISSN 0022-3360. S2CID 131202472.
- Garwood, Russell J.; Dunlop, Jason A. (2010). "Fossils Explained: Trigonotarbids". Geology Today. 26 (1): 34–37. doi:10.1111/j.1365-2451.2010.00742.x. S2CID 247708509. Retrieved June 12, 2015.
- Selden, P. A.; Shear, W. A.; Sutton, M. D. (2008). "Fossil evidence for the origin of spider spinnerets, and a proposed arachnid order". Proceedings of the National Academy of Sciences. 105 (52): 20781–20785. doi:10.1073/pnas.0809174106. ISSN 0027-8424. PMC 2634869. PMID 19104044.
- Wang, Bo; Dunlop, Jason A.; Selden, Paul A.; Garwood, Russell J.; Shear, William A.; Müller, Patrick; Lei, Xiaojie (2018). "Cretaceous arachnid Chimerarachne yingi gen. et sp. nov. illuminates spider origins". Nature Ecology & Evolution. 2 (4): 614–622. doi:10.1038/s41559-017-0449-3. ISSN 2397-334X. PMID 29403075. S2CID 4239867.
- Huang, Diying; Hormiga, Gustavo; Cai, Chenyang; Su, Yitong; Yin, Zongjun; Xia, Fangyuan; Giribet, Gonzalo (2018). "Origin of spiders and their spinning organs illuminated by mid-Cretaceous amber fossils". Nature Ecology & Evolution. 2 (4): 623–627. doi:10.1038/s41559-018-0475-9. ISSN 2397-334X. PMID 29403076. S2CID 3268135.
- Garwood, Russell J.; Dunlop, Jason A.; Selden, Paul A.; Spencer, Alan R. T.; Atwood, Robert C.; Vo, Nghia T.; Drakopoulos, Michael (2016). "Almost a spider: a 305-million-year-old fossil arachnid and spider origins". Proceedings of the Royal Society B: Biological Sciences. 283 (1827): 20160125. doi:10.1098/rspb.2016.0125. ISSN 0962-8452. PMC 4822468. PMID 27030415.
- "LiveScience.com - Oldest Known Spider Web Discovered in Amber". Live Science. 22 June 2006. Retrieved June 25, 2006.
- Magalhaes, Ivan L. F.; Azevedo, Guilherme H. F.; Michalik, Peter; Ramírez, Martín J. (February 2020). "The fossil record of spiders revisited: implications for calibrating trees and evidence for a major faunal turnover since the Mesozoic". Biological Reviews. 95 (1): 184–217. doi:10.1111/brv.12559. ISSN 1464-7931. PMID 31713947. S2CID 207937170.
- Brunetta, Leslie; Craig, Catherine L. (2010). Spider silk : evolution and 400 million years of spinning, waiting, snagging, and mating. New Haven: Yale University Press. ISBN 978-0-300-14922-7.
- Penney, D. (2008). Dominican Amber Spiders: a comparative neontological approach to identification faunistics ecology and biogeography. Manchester: Siri Scientific Press. ISBN 978-0-9558636-0-8.
- Penney, D.; Selden P.A. (2011). Fossil Spiders: the evolutionary history of a mega-diverse order. Manchester: Siri Scientific Press. ISBN 978-0-9558636-5-3.