Anthropogenic habitat modification is a major contributor to global change. While the modification of natural habitats to agroecosystems attracts most of the attention, little is known about the conversion of one natural ecosystem to another. Dry dipterocarp forest is the key dry forest type across Southeast Asia. Moderate fire disturbance is essential for its regeneration, but humans often prevent fire in these forests. Consequently, dry dipterocarps can change to dry evergreen forests through succession. The consequences of this conversion on food webs are unknown. Using the network approach, we compared the food webs of web-building spiders and their prey in the understory between dry dipterocarp (open canopy, uniform understory) and dry evergreen forests (closed canopy, heterogeneous understory) in north-eastern Thailand. Overall, we collected 560 individual web-building spiders belonging to 37 genera. Further, we collected 1139 prey items from spider webs belonging to 16 arthropod orders. The composition of captured prey and the network structure differed between the forest types. Specifically, the web-building spiders were more specialized and their niches overlapped less in dry dipterocarps than in dry evergreens. The differences in food-web structure were driven mostly by trophic groups turnover rather than interaction rewiring. Implications for insect conservation: The transformation of dry dipterocarp to dry evergreen forests from the prevention of fire disturbance may lead to an altered ecological function of web-building spiders in forest understories. As trophic links and their strength are rewired, habitat modification may also lead to changes in nutrient and energy flow in forest understories.