The first and second Opium Wars determined Chinese relationships with what nation?

The first and second Opium Wars determined Chinese relationships with what nation?