The invention relates to the field of guide rails, in particular to a guide rail. The guide rail comprises a guide seat, a sliding mechanism, a guide strip, a sweeping mechanism, a shell, moving grooves, a first roller column, first gears, brushes, second gears and a second roller column. The guide rail has the beneficial effects that in the process that the guide seat slides towards a discharginggroove, the rolling connection between the second roller column and the guide strip is realized, so that the two second gears on the surface of the second roller column further drive the two first gears on the surface of the first roller column to rotate; and while the first gears and the first roller column rotate, the brushes rotate along with the first gears and the first roller column to sweep sundries on the surface of the guide strip, so that the sundries on the surface of the guide strip are removed when the guide seat is about to reach the guide strip, the situations that when parts which are filled with liquid or more accurate are conveyed, the guide strip and the guide seat shake due to the obstruction of foreign substances, and then the liquid is splashed and the accurate partsare offset are avoided, and the normal advancing of the conveyed objects is ensured.