Reval was granted Lübeck city rights (1248) and joined the Hanseatic League.