Yes, tents protect from sun—if you mean beach tents. Most beach tents do provide UV protection, but most camping tents do not. So if you are looking for something to use on the beach specifically, invest in a specialized beach tent.