sentences:  In the battle, the Chilean forces, under the command of Colonel Juan de Dios Puga, and the Spanish forces, under the command of Brigadier Antonio Pareja, confronted each other.The battle began when, in the middle of the night, the Chileans let loose on the Spanish soldiers that were camping in the village of Yerbas Buenas, near Linares.In the beginning, the dark favored the Chileans, who created confusion among the Spanish troops and almost won the battle but just at the light of day, the Spanish realized that they were greater in number than the Chileans, and launched an attack.