It’s important to allow for enough space between the tree and your house, in order to keep everything safe. This is because the roots of the tree will grow and expand over time, and could eventually disrupt the structure of the house beneath the ground.
As a general rule, you should allow for around 15 feet of distance between the tree and your house. However, this can depend on the type of tree. Trees that are larger and have bigger root systems will need more space. You also need to check whether the roots of that type of tree are prone to growing more downwards, or more sideways.