This is the 11189th most frequent Spanish word.
encerrados
"Encerrados" means "locked up" or "confined."
Here, 'encerrados' conveys the idea of being physically confined or enclosed in a location, namely the library.
Los estudiantes estaban encerrados en la biblioteca por una actividad especial.
The students were locked in the library for a special activity.
In this case, 'encerrados' is used metaphorically, expressing a feeling of being trapped within a monotonous routine.
Nos sentimos encerrados en una rutina diaria que no cambia.
We feel trapped in a daily routine that does not change.
Here, 'encerrados' indicates that the animals were kept within a physical space (the stable) for safety or necessity.