The Dobele castle is first mentioned in records in 1254 as a fortified timber castle, the administrative centre of the Semigallian Dobele district. Intense battles against German crusaders took place in the Dobele vicinity during the Livonian crusades. Semigallians fiercely resisted the enemy, who could not conquer the castle.