Dzongs were orginally built as military fortresses, but as that need became less important, their function shifted to being both Buddhist temples, and the seat of the local administrative government.