Viscosity in liquids is due to

Intermolecular force

Repulsive force between molecules

Gravitational force

Frictional force between molecules