 In 1247 Odense was burned by Abel of Denmark during conflicts with his brother King Erik IV . The cathedral had to be completely rebuilt . Nevertheless , the town continued to flourish as a commercial centre , and was charted in 1335 . The city thrived economically during the Middle Ages , attracting many merchants and craftsman who traded their goods . 
