Original: The town of Brandenburg, which is almost as widely known as the state of Brandenburg, provided the name for the medieval Bishopric of Brandenburg, the Margraviate of Brandenburg, and the current state of Brandenburg.
Simplified: The town of Brandenburg is less known than the state of Brandenburg: But the state is named after the town, and so is the medieval Bishopric of Brandenburg, the Margravate of Brandenburg.