The fourth stage of labor is the immediate postpartum period, typically lasting for about two hours after the delivery of the placenta.