Theoretically, annexation can occur peacefully through the voluntary consent of both parties, but such cases are rare in history. Usually, annexation is considered a violation of international law, regardless of the nature of the interaction between the states.