A wall rail system for hanging and aligning cabinets has a wall mounting rail and a cabinet mounting bracket. The wall mounting rail is mounted to a wall. The cabinet mounting bracket is mounted to an upper back portion of a cabinet. An upper portion of the cabinet mounting bracket is constructed and arranged for receiving a portion of the wall mounting rail. The upper portion of the cabinet mounting bracket is retained within the portion of the wall mounting rail, which aligns the cabinet for mounting to the wall.