Shipyards are where Ships are created, modified, and repaired. They are where additional ships can be added to your Fleet.
Star Systems with shipyards are more likely to have colonies, although many do not.
Ships can be repaired using the "Shipyard" construction menu.
Usually shipyards sell ships of different Templates.
It's also possible to modify your ships by adding or removing different Construction Materials, such as: