The sentence you wrote is almost correct but can be improved a little for clarity and grammar.
Original sentence: The spider spins a web of thin threads for its home.
It’s better to say: The spider spins a web of thin threads to make its home.
Explanation:
- Using to make instead of for helps explain the purpose more clearly – the web is made to be the spider's home.
- Its is the right word to show the web belongs to the spider.
So the improved sentence means the spider creates a web using thin threads to live in.