A pet barrier is basically provided that includes a plurality of telescoping tubes, a plurality of bars and at least one locking device. The telescoping tubes are configured to be installed in a vehicle. The telescoping tubes include a first tube and a second tube. The second tube is sized and configured to be inserted into an inner cavity of the first tube. The second tube includes a noise damping cap installed thereon to separate the second tube from an inner wall of the first tube. The plurality of bars extends transverse to the telescoping tubes. The locking device is configured to secure the plurality of bars to the telescoping tubes.