Simple:
* The dog gave a hostile growl at the stranger.
* The hostile environment made it difficult to survive.
More Complex:
* The hostile takeover attempt was met with fierce resistance from the company's board.
* Despite their initial hostility, the two groups eventually found common ground.
* The journalist's article was met with hostile reactions from the government.
* The soldiers faced a hostile enemy in the jungle.
Figurative:
* The city's atmosphere was hostile to creativity.
* He felt a hostile force pulling him away from his dreams.
The best way to use "hostile" will depend on the context of your writing.