Sealed classes are classes whose subclasses are known at compile time. In Scala, they cannot be extended by classes outside of the source file in which they are defined.