Vastu shastra means an ancient Hindu system of architecture. It is based on directions and its energy, which is utilized to balance five elements that is fire, earth, wind, water and space or ether. Our body is also made up of these five elements. Therefore it is necessary to balance these five elements. Vastu shastra is based on balancing these elements into ones house so the dweller of the house gets all the happiness in life like wealth, marriage, children, health, etc.
There are many stories regarding the beginning of Vastu shastra as a science.
It developed between 6000 BC and 3000 BC and at that time it was purely an applied science. It was restricted to some people of society and was transferred from one person to another by word of mouth or in written form.