A play yard comprises two brackets, two rail members, two support frames, a central member, a plurality of connecting members and a latch mechanism. The rail members are pivotally connected to the brackets. Each of the support frames comprises two upper support members and a lower support member. The upper support members are pivotally connected to the brackets. The lower support member is pivotally connected to the upper support members. The connecting members are pivotally connected to the central member and the lower support member. The latch mechanism is configured to lock or unlock the connecting members. When the latch mechanism locks the connecting members, the rail members, the upper support members, the lower support member and the connecting members are unfolded. When the latch mechanism unlocks the connecting members, the rail members, the upper support members, the lower support member and the connecting members are able to be folded.