Electric guitars rely on the principles of electromagnetism to convert string vibration into electrical signal.