Why Did Samurai Carry Two Swords?

If you’ve ever seen a samurai in a movie, you’ve probably noticed something distinctive: they carried two swords.