Question: is it illegal to ride a motorcycle at night?
Answer: Riding a motorcycle at night is neither illegal nor an offence. What transpired with you a typical case of high handedness by police. Police has the right to stop and inspect vehicles at will.