In chapters three and four of Locke’s Second Treatise, he covers The State of War (inside and outside of the context of society), and Slavery.
He makes a few strange arguments here, so bear with me as I try to work through them and provide some context.
One very interesting point is that, for Locke, the primeval state of man (pre-government) consists of some mixture of the State of Nature and the State of War. In short, Locke’s State of Nature has a different scope from, say, Hobbes’s.