Barline
Also: double barline, final barline
The vertical line that ends a bar. A double barline ends a section; a thin line and a thick one end the piece.
Barlines group the beats: in 4/4 each bar holds four, and the first beat after a barline is the strongest. A sharp or a flat written in a bar lasts until the next barline.
A double barline ends a section, often where the key or the time signature changes. A thin line and a thick one end the piece. Put two dots before them and the music goes back: that is a repeat sign.