A black line on a computer screen is usually caused by a hardware issue like a damaged display panel, faulty graphics card, or loose cable connection. To fix it, restart your computer, update your graphics drivers, or connect to an external monitor to test. If the line persists, screen repair or replacement may be needed.