What is the difference between a basilica and a cathedral?

A basilica is a church that has special importance for worship or history, while a cathedral is the seat of a bishop. Although St. Peter's Basilica is a papal basilica, the cathedral of Rome is the Basilica of St. John Lateran.