This is the 254th most frequent Latvian word.
beigām
"Beigām" means "to the end" or "for the end" in English.
Here, 'beigās' refers to 'the end' in the locative case, showing the location in time or space.
Semestra beigās mēs rīkosim koncertu.
At the end of the semester, we will organize a concert.
In this sentence, 'beigām' again means 'the end' in the dative case, marking the limit up to which the state described applies.
Līdz svētku beigām visi bija noguruši, bet apmierināti.
By the end of the celebration, everyone was tired but satisfied.
The word 'beigām' here translates as 'the end' in the dative case, indicating the recipient of the action of reaching.