The sentence has one independent clause ("it barked loudly") and one dependent clause ("When the dog chased the cat").
This structure defines a complex sentence.
Get instant updates and alerts directly from our site.
Install this app on your device for quick access right from your home screen.