Profiting from the civil strife, Austria-Hungary officially annexed Bosnia and Herzegovina in 1908.