Conversation so far:
where did the uwunited states gain independence from
The US obtained independence from Great Britain.

Question: when did the country gain independence?
Self-contained rewrite: when did the US gain independence?