The structural and electronic properties of ScB2 with AlB2 structural under pressure ranging from 0 to 100 GPa are studied in the framework by using density function theory within the generalized gradient approximation (GGA). The results at zero pressure are in good agreement with the available experimental and other theoretical data. The obtain pressure dependence of structural property shows that the effect of pressure is little on the structure of ScB2. The density of states (DOS) of ScB2 under high pressure is also successfully calculated. We find high pressure greatly changes the profile of the DOS, and it is found that the density of the states near Fermi level decreases with pressure, indicating the reduction in the hybridization energy under high pressure.