The use of a word to refer to something related.
Biblical examples
Related figures of speech
Synecdoche
The use of a part to refer to the whole.
Biblical examples
"Jerusalem" may be used to refer to the whole of Israel (the united kingdom) or the whole of Judah (the southern kingdom), Jerusalem being the capital.
Related figures of speech
Metonymy