Emergent Yang-Mills theory