but under what circumstances were both these treaties written