Complex sentence: Yu Dayou was a general of the Ming Dynasty who studied martial arts in a shaolin temple and who was assigned to defend the coast against the Japanese pirates.
Split into simpler sentences: Yu Dayou was a general of the Ming Dynasty who studied martial arts in a shaolin temple. He was assigned to defend the coast against the Japanese pirates.