Bills of attainder are legislative acts that declare a person or group guilty of a crime and impose punishment without a trial. This practice is prohibited by the U.S. Constitution, emphasizing the importance of due process and protecting individual rights within the framework of the legislative process.