Glass is a block made by smelting Sand, Sand Compact, or Light Sand in a Forge. Glass lets light through, so you can place it in the back layer of your house to let sunlight in your house.
To smelt a block of glass, you need to get in a Forge and then place the items like shown below.