Mästerby
| Mästerby | |
|---|---|
| Mästerby church | |
| Coordinates: 57°28′12″N 18°18′14″E / 57.47000°N 18.30389°E | |
| Country | Sweden | 
| Province | Gotland | 
| County | Gotland County | 
| Municipality | Gotland Municipality | 
| Area | |
|  • Total | 22.97 km2 (8.87 sq mi) | 
| Population  (2014) | |
|  • Total | 181 | 
| Time zone | UTC+1 (CET) | 
| • Summer (DST) | UTC+2 (CEST) | 
| Website | Mästerby | 
Mästerby is a populated area, a socken or administrative parish (not to be confused with ecclesiastical parish), on the Swedish island of Gotland. It comprises the same area as the administrative Mästerby District, established on 1 January 2016.
When King Valdemar IV of Denmark and his troops invaded Gotland in 1361, they met the first line of resistance at the Battle of Mästerby.