This invention provides thienopyrimidine derivatives of the formula, wherein R 1 stands for hydrogen atom, an alkyl group or the like; R 2 stands for a hydrogen atom, an alkyl or amino group or the like, R 3 stands for an alkyl, alkenyl or alkylthio group or the like or a group Y-X-; or R 2 and R 3 may together form tetramethylene group; X standing for a direct bond or linking group such as CH 2 , CH(OH), S, O, NH; Y standing for a substituted or unsubstituted aromatic carbocycylic, aromatic heterocylic, cycloalkyl or saturated heterocyclic group or the like; Z stands for S or O, and n is 0 or an integer of 1 to 4, or salts thereof, which exhibit an inhibitory effect on PDE9, and are therefore useful for prevention or treatment of overactive bladder syndrome, pollakiuria, urinary incontinence, dysuria associated with prostatic hyperplasia, urolithiasis, Alzheimer's disease, chronic obstructive pulmonary disease, myocardial infarction, thrombosis, diabetes and the like.본 발명은, 식 (I)식 중, R1 은 수소 원자, 알킬기 등을 표시하고 ;R2 는 수소 원자, 알킬기, 아미노기 등을 표시하고 ;R3 은 알킬기, 알케닐기, 알킬티오기 등 또는 Y-X- 의 기를 표시하거나, 또는,R2 및 R3 은 하나가 되어 테트라메틸렌기를 형성하고 있어도 되고 ;X 는 직접 결합 또는 CH2, CH(OH), S, O, NH 등의 연결기를 표시하고 ;Y 는 치환 또는 미치환된 방향족 탄소고리형기, 방향족 복소고리형기, 시클로알킬기, 포화 복소고리형기 등을 표시하고 ;Z 는 S 또는 O 를 표시하며 ;n 은 0 또는 1 ∼ 4 의 정수를 표시하는 것으로 나타내는, PDE9 저해 작용을 갖고, 과활동 방광, 빈뇨, 요실금, 전립선 비대증에 수반하는 배뇨 장해, 요로 결석, 알츠하이머병, 만성 폐색성 폐질환, 심근 경색, 혈전증, 당뇨병 등의 예방 또는 처치에 있어서 유용한 티에노피리미딘 유도체 또는 그 염을 제공하는 것이다.