A bracket adapted for mounting a slide rail to a post of a rack includes a bracket plate, a mounting member, a first fastening member, and an engaging base. The bracket plate is attached to the slide rail. The mounting member is connected to the bracket plate and can be mounted to the post. The first fastening member is movably mounted on the bracket plate and has a fastening portion to be locked to the post. The engaging base is coupled to the first fastening member and includes first and second portions. A second fastening member can enter a space between the second portion and the first fastening member, engage with the second portion, and thus be prevented from detachment from the engaging base.