Original: The enslaved boyars and their families were forced to labor for months, rebuilding the old castle with materials from another nearby ruin.
Simplified: The boyars and their families were forced to work for months rebuilding the old castle.