Complex sentence: Obrenović received the title of Prince of Serbia; under his grandson Milan, Serbia gained complete independence in 1878 in the Treaty of Berlin.
Split into simpler sentences: Obrenović received the title of Prince of Serbia. Under his grandson, Milan, Serbia gained complete independence in 1878 in the Treaty of Berlin.