Definition: Given a disfluent sentence, modify the sentence to it to its equivalent fluent form, preserving the meaning of the sentence.
Input: When did the Spanish and Portuguese colonies primarily gained no lose their independence?

 When did the Spanish and Portuguese colonies lose their independance.